package cn.itsource.thread.method.join;

/**
 *	下载图片线程类
 */
public class DownThread extends Thread {
	@Override
	public void run() {
		System.out.println("正在下载");
		
		for (int i = 1; i <= 100; i++) {
			System.out.println("下载进度：" + i + "%");
			try {
				//阻塞指定时间
				Thread.sleep(50);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		
		System.out.println("下载完成！");
	}
}
